package com.zr.serviceImpl;

import com.zr.dao.FunctionDaocy;
import com.zr.daoImpl.FunctionDaoImplcy;
import com.zr.service.FunctionServicecy;


import net.sf.json.JSONArray;

public class FunctionServiceImplcy implements FunctionServicecy {
	//创建道层对象
	FunctionDaocy ful = new FunctionDaoImplcy();
	/**
	 * 调用实现服务层
	 */
	public JSONArray getFunction(int parentId) {
		return ful.getCurrentUserFuncsByParentId(parentId);
	}
	@Override
	public int findPidByUid(int uid) {
		// TODO Auto-generated method stub
		return ful.getPidByUid(uid);
	}

}
